Skip to content

Silence TMVA SOFIE tutorial warnings from third party libraries#22144

Merged
guitargeek merged 3 commits into
root-project:masterfrom
guitargeek:tmva_tutorial_warnings
Jun 10, 2026
Merged

Silence TMVA SOFIE tutorial warnings from third party libraries#22144
guitargeek merged 3 commits into
root-project:masterfrom
guitargeek:tmva_tutorial_warnings

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

Keras and PyTorch still cause some warnings in a few places where they use deprecated features from their dependencies. We need a mechanism to silence these warnings to that our tests will run with warnings as errors, while also making sure we catch when the warnings don't happen anymore, so we can remove the boilerplate code for warnings silencing.

With this change, we are working towards:

@guitargeek guitargeek requested a review from lmoneta May 5, 2026 09:29
@guitargeek guitargeek self-assigned this May 5, 2026
@guitargeek guitargeek requested a review from couet as a code owner May 5, 2026 09:29
@guitargeek guitargeek force-pushed the tmva_tutorial_warnings branch 2 times, most recently from 35ef191 to 72db81c Compare May 5, 2026 12:15
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 10h 42m 32s ⏱️
 3 860 tests  3 859 ✅ 0 💤 1 ❌
77 073 runs  77 072 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit bccc598.

♻️ This comment has been updated with latest results.

User-facing code like tutorials should be nicely formatted, in
particular avoiding non-standard indentations with three spaces that can
annoy users when copy-pasting code.
Keras and PyTorch still cause some warnings in a few places where they
use deprecated features from their dependencies. We need a mechanism to
silence these warnings to that our tests will run with warnings as
errors, while also making sure we catch when the warnings don't happen
anymore, so we can remove the boilerplate code for warnings silencing.
In particular, replace `raiseError` which is only available in pytest
fixtures.
@guitargeek guitargeek force-pushed the tmva_tutorial_warnings branch from 72db81c to bccc598 Compare June 1, 2026 03:21
@dpiparo dpiparo self-requested a review June 10, 2026 18:02
@guitargeek guitargeek merged commit 945cb26 into root-project:master Jun 10, 2026
54 of 58 checks passed
@guitargeek guitargeek deleted the tmva_tutorial_warnings branch June 10, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants